package com.sphd.emanu.activity.arrivetime;

import com.sphd.emanu.mvp.BasePresenter;
import com.sphd.emanu.mvp.BaseView;
import com.sphd.emanu.pojo.market.ArriveTime;

import java.util.List;

import cn.pedant.SweetAlert.SweetAlertDialog;

/**
 * MVPPlugin
 * 邮箱 784787081@qq.com
 */

public class ArriveTimeContract {
    interface View extends BaseView {

        void setTimeList(List<ArriveTime> timeList);

        void setRes(int res);

        void delRes(int res, int pos, SweetAlertDialog sweetAlertDialog);

        void upRes(int res, Integer pos);


    }

    interface Presenter extends BasePresenter<View> {
        void selectArriveTime(int org);

        void addArriveTime(int org, String arriveTime, Integer offset);

        void updateArriveTime(Integer id, String arriveTime, Integer offset, Integer pos);

        void deleteArriveTime(Integer arriveTimeId, int id, SweetAlertDialog sweetAlertDialog);
    }
}
